import { defineStore } from "pinia";
import { reqPayInfo } from "../api/submit_order/submit_order"
import { ref } from "vue";
export const PayInfoStore = defineStore("PayInfoStore", () => {
    let payInfo = ref({})
    const PayInfo = async (orderId: any) => {
        let result: any = await reqPayInfo(orderId)
        console.log(result.data);

        if (result.code == 200) {
            payInfo.value = result.data
        }
    }
    return {
        PayInfo
    }
})